import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import login from '@/components/login'
import show from '@/components/show'
import addbooks from '@/components/addbooks'
import alter from '@/components/alter'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/show',
      name: 'show',
      component: show
    },
    {
      path: '/addbooks',
      name: 'addbooks',
      component: addbooks
    },
    {
      path: '/alter',
      name: 'alter',
      component: alter
    }
  ]
})
